//拦截器，判断用户是否登录
checkLogin();
function checkLogin() {
  $.ajax({
    url: "/employee/checkRootLogin",
    dataType: "json",
    success: function (res) {
      //   console.log(res);
      if (res.error) {
        return (location.href = "./login.html");
      }
    }
  });
}
